package cn.com.huzo.model.entities.trade;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 生产指示书明细之颜色顺序记录实体类
 * <p>
 * @author 吴旭
 */
public class ProductionInstructionLinesColourOrderEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = 2984753024754674260L;
    private String LinesId;                   // 明细标识
    private Long HeaderId;                    // 所属主记录标识
    private Long ColourId;                    // 成品色
    private String ColourNumber;              // 色号
    private String ColourName;                // 颜色名
    private Short OrderNo;                    // 成品色顺序

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public Long getColourId() {
        return ColourId;
    }

    public void setColourId(Long ColourId) {
        this.ColourId = ColourId;
    }

    public String getColourNumber() {
        return ColourNumber;
    }

    public void setColourNumber(String ColourNumber) {
        this.ColourNumber = ColourNumber;
    }

    public String getColourName() {
        return ColourName;
    }

    public void setColourName(String ColourName) {
        this.ColourName = ColourName;
    }

    public Short getOrderNo() {
        return OrderNo;
    }

    public void setOrderNo(Short OrderNo) {
        this.OrderNo = OrderNo;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof ProductionInstructionLinesColourOrderEntity)) {
            return false;
        }

        final ProductionInstructionLinesColourOrderEntity that = (ProductionInstructionLinesColourOrderEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getLinesId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
